import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import './assets/global.css'
import './plugins/element.js'
import './assets/fonts/iconfont.css'
import axios from 'axios'


axios.defaults.baseURL = 'http://180.76.158.173:8888/api/private/v1/'
// axios.defaults.headers.common['Authorization'] = window.sessionStorage.getItem('token')

// 请求拦截
axios.interceptors.request.use(config=>{
  config.headers.Authorization = window.sessionStorage.getItem('token')
  //最后必须return config
  return config
})


Vue.prototype.$axios = axios




Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
